package com.teach.service.photo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.teach.dto.LoginUser;
import com.teach.dto.PhotoUserInformDTO;
import com.teach.entity.PhotoGreat;
import com.teach.entity.PhotoPic;

public interface PhotoGreatService {
	 	
		int deleteByPrimaryKey(Long photoGreatId);

	    int insert(PhotoGreatService record);

	    int insertSelective(PhotoGreatService record);

	    PhotoGreatService selectByPrimaryKey(Long photoGreatId);

	    int updateByPrimaryKeySelective(PhotoGreatService record);

	    int updateByPrimaryKey(PhotoGreatService record);
	    
	    /**
	     * 	点赞消息通知
	     * @param user
	     * @param status
	     * @return
	     */
	    Map<String, PhotoUserInformDTO> greatInform(LoginUser user, String status);
	    
	    /*
	     * 点赞
	     */
	    int insertUpdateGreat(PhotoGreat great,PhotoPic pic);
	    
	    PhotoGreat selectGreatId(Long picId,String picUser);
	    
	    int updateStatus(String status,Long picId,String userId,PhotoPic pic);
}
